package com.yu.footballpromotionliveadmin.dao;

import com.yu.footballpromotionliveadmin.page.PageInfo;
import com.yu.footballpromotionliveadmin.pojo.CompetitionRecord;

import java.util.List;

public interface CompetitionRecordDao {
    public List<CompetitionRecord> getAllCompetitionRecors()  throws Exception;
    public CompetitionRecord  getCompetitionRecorByUno(String crno)  throws Exception;
    public List<CompetitionRecord> getCompetitionRecorsByPage(PageInfo pageInfo);
    //增删改的返回值都是整数
    Integer deleteCompetitionRecor(String crno)  throws Exception;
    Integer updateCompetitionRecor(CompetitionRecord competitionRecord)  throws Exception;
    Integer addCompetitionRecorByUno(CompetitionRecord competitionRecord)  throws Exception;

    CompetitionRecord getCompetitionRecorsWithOrders(String crno)throws Exception;

    CompetitionRecord getAccountByAccountName(String crno)throws Exception;
}
